From e27fc6068ef3138f967166db6321f6895bd9c32f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Mon, 26 May 2025 15:27:22 +0200 Subject: [PATCH] ci: Restore /etc/passwd permissions after installing packages The flatpak package installs a sysuser trigger, which for some reason messes up the permissions of /etc/passwd to only be readable by root. Work around this by simply restoring the permissions at the end. Part-of: --- .gitlab-ci/build-toolbox-image.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci/build-toolbox-image.sh b/.gitlab-ci/build-toolbox-image.sh index 24f110aa6..1b4934fd6 100755 --- a/.gitlab-ci/build-toolbox-image.sh +++ b/.gitlab-ci/build-toolbox-image.sh @@ -45,6 +45,10 @@ build_container() { buildah run $build_cntr dnf clean all buildah run $build_cntr rm -rf /var/lib/cache/dnf + # somehow the sysusers trigger from the flatpak package messes up the + # permissions of /etc/passwd to be only readable by root + buildah run $build_cntr chmod 644 /etc/passwd + # disable gnome-keyring activation: # it either asks for unlocking the login keyring on startup, or it detects # the running host daemon and doesn't export the object on the bus, which -- 2.39.5